﻿@model StudentManagement.Models.Teacher

<h3>@ViewBag.PageTitle</h3>

<div class="row justify-content-center m-3">
    <div class="card" style="width: 400px;">
        <img src="~/images/teacher.png" class="card-img-top" alt="...">
        <div class="card-body text-center">
            <h1 class="card-title">@Model.Name</h1>
            <p class="card-text">教师ID : @Model.Id</p>
            <p class="card-text">院系 : @Model.Department</p>
            <p class="card-text">电子邮箱 : @Model.Email</p>
            <p class="card-text">入职日期 : @Model.HireDate</p>

            <a asp-action="index" class="btn btn-primary">返回</a>
            <a asp-action="edit" asp-route-id="@Model.Id" class="btn btn-primary">编辑</a>
            <a asp-action="delete" asp-route-id="@Model.Id" class="btn btn-danger">删除</a>
        </div>
    </div>
</div>

